package com.group3.domain;


import com.group3.pojo.Page;
import com.group3.pojo.receive.StudentReceive;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
@ApiModel(value = "学生信息")
public class Student extends Page {

    @ApiModelProperty(value = "学生学号")
    private String studentId;

    @ApiModelProperty(value = "学生头像地址")
    private String avatorUrl;

    @ApiModelProperty(value = "学生姓名")
    private String studentName;

    @ApiModelProperty(value = "学生性别")
    private Integer sex;

    @ApiModelProperty(value = "学生身份证")
    private String cardId;

    @ApiModelProperty(value = "学生电话")
    private String tel;

    @ApiModelProperty(value = "学生邮箱")
    private String email;

    @ApiModelProperty(value = "学生是否结业")
    private Integer state;

    @ApiModelProperty(value = "学生班级")
    private String classId;

    @ApiModelProperty(value = "项目角色")
    private Integer type;

    @ApiModelProperty(value = "学生密码")
    private String password;

    public Student(){

    }

    public Student(StudentReceive studentReceive){
        this.studentId = studentReceive.getBeforeStudentId();
        this.studentName = studentReceive.getStudentName();
        this.tel = studentReceive.getTel();
        this.type = studentReceive.getType();
        this.sex = studentReceive.getSex();
        this.cardId =studentReceive.getCardId();
        this.email =studentReceive.getEmail();
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getStudentId() {
        return studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId == null ? null : studentId.trim();
    }

    public String getAvatorUrl() {
        return avatorUrl;
    }

    public void setAvatorUrl(String avatorUrl) {
        this.avatorUrl = avatorUrl == null ? null : avatorUrl.trim();
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName == null ? null : studentName.trim();
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId == null ? null : cardId.trim();
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel == null ? null : tel.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getClassId() {
        return classId;
    }

    public void setClassId(String classId) {
        this.classId = classId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
}